<?php

$flashMessages = Yii::app()->user->getFlashes();
if ($flashMessages) {
    echo '<div id="system-message">';
    foreach ($flashMessages as $key => $message) {
	echo '<div class="flash-' . $key . '">' . $message . "</div>\n";
    }
    echo '</div>';
} else {?>
    <div id="system-message">
	<div id='message'></div>
    </div>
	 
    <?php
}
?>